package com.noble.meether.ui.invite.bean;

import com.noble.library.base.bean.BaseData;

import org.json.JSONObject;

/**
 * 邀请说明
 */
public class InviteDeclare extends BaseData {
    private int id;
    private String title;
    private String htmlContent;
    private int statusInvite;// 状态 1：可用 -1：禁用
    private String value;

    @Override
    public void parseJson(String jsonStr) {
        JSONObject jsonObject =getJsonObject(jsonStr);

        this.setId(jsonObject.optInt("Id"));
        this.setTitle(jsonObject.optString("Title"));
        this.setHtmlContent(jsonObject.optString("HtmlContent"));
        this.setStatusInvite(jsonObject.optInt("StatusInvite"));
        this.setValue(jsonObject.optString("Value"));
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getStatusInvite() {
        return statusInvite;
    }

    public void setStatusInvite(int statusInvite) {
        this.statusInvite = statusInvite;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getHtmlContent() {
        return htmlContent;
    }

    public void setHtmlContent(String htmlContent) {
        this.htmlContent = htmlContent;
    }
}
